<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/js/util.js"></script>
<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
</head>
<body>
<html:form styleId="yfStandardForm" action="addYfStandard.do?method=addYfStandard" onsubmit="return save();">
    <input type ="hidden" name="id" id="id" value="${yfStandardForm.id}"/>
    <input type ="hidden" name="projectid" id="projectid" value="0"/>
    <input type ="hidden" name="bussType" id="bussType" value="${yfStandardForm.bussType}"/>
	<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      
		      <c:if test="${yfStandardForm.bussType==0}">
					<td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">标准规范 &gt; 公司政策 &gt; 新增</td>
			  </c:if>
			  <c:if test="${yfStandardForm.bussType==1}">
					<td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">标准规范 &gt; 招标规范 &gt; 新增</td>
			  </c:if>
			 <c:if test="${yfStandardForm.bussType==2}">
					<td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">标准规范 &gt; 开发规范 &gt; 新增</td>
			  </c:if>
		    </tr>
       </table>
	
	   
	    <table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	        
      
                 <c:if test="${yfStandardForm.bussType==0}">
						<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileName" bundle="yfstandard"/>：<font color="red">*&nbsp;</font></td>
						   <td width="82%"  align="left" colspan="3" class="pad2 zi13">
						           <input type="text" id="fileName" size="80" flag="true"  maxlength="50"  valid="required" errMsg="请输入文件名称！"  name="fileName"/> 		  
						  </td>
				      </tr>
				      	<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13">上传人：</td>
						   <td width="32%"  align="left"   class="pad2 zi13">
						           <input type="text"   readonly="true" id="rname"   name="rname" value="${yfStandardForm.rname}"/> 	
						           	  
						  </td>
						    <td width="18%" align="right" class="zi13">上传时间：</td>
							   <td width="32%"  align="left" class="pad2 zi13">
							       <input type="text" readonly="true"  id="createDateStr"   name="createDateStr" value="<bean:write name='yfStandardForm' property='createDate' format='yyyy-MM-dd'/>" /> 	
								  
							  </td>
				      </tr>
			     </c:if>
			     <c:if test="${yfStandardForm.bussType==1}">
						<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileName" bundle="yfstandard"/>：<font color="red">*&nbsp;</font></td>
						   <td width="32%"  align="left" colspan="3" class="pad2 zi13">
						           <input type="text" id="fileName" flag="true"  maxlength="50"  valid="required" errMsg="请输入文件名称！" size="50" name="fileName"/> 		  
						  </td>
						    <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileType" bundle="yfstandard"/>：</td>
							   <td width="32%"  align="left" class="pad2 zi13">
							         		  		  <ssh:select propertyName="fileType" pid="ZBGF_TYPE" type="1" defaultName="${yfStandardForm.fileType}"/>
								  
							  </td>
				      </tr>
				      	<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13">上传人：</td>
						   <td width="32%"  align="left"  colspan="3"  class="pad2 zi13">
						           <input type="text"   readonly="true" id="rname"   name="rname" value="${yfStandardForm.rname}"/> 	
						           	  
						  </td>
						    <td width="18%" align="right" class="zi13">上传时间：</td>
							   <td width="32%"  align="left" class="pad2 zi13">
							       <input type="text" readonly="true"  id="createDateStr"   name="createDateStr" value="<bean:write name='yfStandardForm' property='createDate' format='yyyy-MM-dd'/>" /> 	
								  
							  </td>
				      </tr>
			     </c:if>
			  
			  	<c:if test="${yfStandardForm.bussType==2}">
						<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileName" bundle="yfstandard"/>：<font color="red">*&nbsp;</font></td>
						   <td width="32%"  align="left" colspan="3" class="pad2 zi13">
						           <input type="text" id="fileName" flag="true"  maxlength="50"  valid="required" errMsg="请输入文件名称！" size="50" name="fileName"/> 		  
						  </td>
						    <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileType" bundle="yfstandard"/>：</td>
							   <td width="32%"  align="left" class="pad2 zi13">
							         		  		  <ssh:select propertyName="fileType" pid="KFGF_TYPE" type="1" defaultName="${yfStandardForm.fileType}"/>
								  
							  </td>
				      </tr>
				       	<tr class="bgcolor">
						   <td width="18%" align="right" class="zi13">上传人：</td>
						   <td width="32%"  align="left"  colspan="3"  class="pad2 zi13">
						           <input type="text"   readonly="true" id="rname"   name="rname" value="${yfStandardForm.rname}"/> 	
						           	  
						  </td>
						    <td width="18%" align="right" class="zi13">上传时间：</td>
							   <td width="32%"  align="left" class="pad2 zi13">
							       <input type="text" readonly="true"  id="createDateStr"   name="createDateStr" value="<bean:write name='yfStandardForm' property='createDate' format='yyyy-MM-dd'/>" /> 	
								  
							  </td>
				      </tr>
			     </c:if>
			     
			    
<!-- 
<tr>

      
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.fileType" bundle="yfstandard"/>：</td>
	   <td width="32%"  align="left" class="pad2 zi13">
	         		  		  <ssh:select propertyName="fileType" pid="" type="1" defaultName="${fileType}"/>
		  
	  </td>

        </tr>
 
        <tr class="bgcolor">
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.operateid" bundle="yfstandard"/>：</td>
	   <td width="32%"  align="left" class="pad2 zi13">
	                               				 <input type="text" id="operateid" name="operateid"/>
		         		                       		  
	  </td>

 
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfstandard.entity.yfstandard.createpage.createDate" bundle="yfstandard"/>：</td>
	   <td width="32%"  align="left" class="pad2 zi13">
	                               				  <input type="text" readonly="true"   name="createDateStr" id="createDateStr" readonly="true"  onclick="popUpCalendarDlg(this)" />
		         		                       		  
	  </td>

        </tr>
  -->

    </table> 
              <c:if test="${yfStandardForm.bussType==0}">
					<iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${yfStandardForm.id}&type=20001"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>
			  </c:if>
			  <c:if test="${yfStandardForm.bussType==1}">
					<iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${yfStandardForm.id}&type=20002"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>
			  </c:if>
			 <c:if test="${yfStandardForm.bussType==2}">
					<iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${yfStandardForm.id}&type=20003"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>
			  </c:if>
			  
			  
	
	         

		<p><p><p>
	
       <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td align="center">
		<input class="buttonbg" id="but_save" style="cursor:hand" type="submit" value="<bean:message key='com.manager.common.yfstandard.save' bundle="yfstandard"/>" name="but_save" />
		  &nbsp;&nbsp;&nbsp;
	     <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="<bean:message key='com.manager.common.yfstandard.return' bundle="yfstandard"/>" name="but_return" onClick="javascript:history.go(-1);"/>
		 </td>
  </tr>
</table>

</html:form>
</body>
</html>


<script>

function save(){
   if(validateForm(document.forms[0],'Y'))
   {
	return true;
    }else{
	return false;
    }
}


</script>





